package org.systm.adminuser.params;

import lombok.Getter;
import lombok.Setter;
import org.global.basic.ServiceParams;
import org.systm.adminuser.entity.UserPermission;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
public class UserPermissionParams<ID extends Serializable> implements ServiceParams<ID, UserPermission> {

    private ID id;

    private UserPermission userPermission;

    private List<UserPermission> userPermissions;

    @Override
    public UserPermission get() {
        return this.userPermission;
    }

    @Override
    public void set(UserPermission userPermission) {
        this.userPermission = userPermission;
    }

    @Override
    public void setAll(List<UserPermission> t) {
        this.userPermissions = t;
    }

    @Override
    public List<UserPermission> getAll() {
        return this.userPermissions;
    }
}
